package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.Location;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangjh on 2016/10/8.
 */
@Repository
public interface LocationRepository extends JpaRepository<Location, Long>, JpaSpecificationExecutor,LocationRepositoryCustom {

    List<Location> getByParentId(String parentId);

    List<Location> findByParentId(String parentId);

    Long countByParentId(String parentId);


}
